//
//  RootClassOfTestResult.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/08
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootClassOfTestResult.h"
#import "Similar_UserOfTestResult.h"
#import "DataOfTestResult.h"
@implementation RootClassOfTestResult

+ (NSDictionary *)objectClassInArray{
    return @{@"similar_user" : [Similar_UserOfTestResult class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"similar_user"]) {
        NSMutableArray<Similar_UserOfTestResult *> *mArrayOfSimilar_UserOfTestResult = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Similar_UserOfTestResult *similar_UserOfTestResult = [Similar_UserOfTestResult modelDic:dic];
            [mArrayOfSimilar_UserOfTestResult addObject:similar_UserOfTestResult];
        }
        _similar_user = mArrayOfSimilar_UserOfTestResult;
    }
    if ([key isEqualToString:@"data"]) {
        _data = [DataOfTestResult modelDic:value];
    }
}
@end
